package java_demos.java_basic.modifierStudy;

public class MyClass {
    private Integer year;
    Integer month;

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public Integer getMonth() {
        return month;
    }

    public void setMonth(Integer month) {
        this.month = month;
    }

    public Integer getDay() {
        return day;
    }

    public void setDay(Integer day) {
        this.day = day;
    }

    public Integer getMin() {
        return min;
    }

    public void setMin(Integer min) {
        this.min = min;
    }

    public MyClass(Integer year, Integer month, Integer day, Integer min) {
        this.year = year;
        this.month = month;
        this.day = day;
        this.min = min;
    }

    protected Integer day;
    public Integer min;

    public static void main(String[] args) {



        /*
        * private default protected public
        *
        *  private:私有的只允许本类中进行访问
        *
        *  default:外包中不可以访问其他都可访问
        *
        *  protected:受保护的，同包可以访问（外包中的子孙类也选择性可以访问）
        *
        *  public:全局可访问
        * */
    }
}
